package net.solvetheriddle.wwclient.entity;

import java.util.ArrayList;
import java.util.List;

public class User {

	private int id;
	private String firstName;
	private String surename;
	private float salary;
	private List<Project> projects;

	public User(int id, String firstName, String surname, int salary) {
		super();
		this.id = id;
		this.firstName = firstName;
		this.surename = surname;
		this.salary = salary;
		projects = new ArrayList<Project>();
	}

	public int getId() {
		return id;
	}

	public String getFirstName() {
		return firstName;
	}

	public String getSurname() {
		return surename;
	}

	public float getSalary() {
		return salary;
	}

	//TODO everything - get active projects
	public List<Project> getActiveProjects() {
		return projects;
	}
	
	//TODO everything - get inactive projects
	public List<Project> getUnactiveProjects() {
		return projects;
	}
	
	//TODO everything - get all projects
	public List<Project> getAllProjects() {
		return projects;
	}
	
	@Override
	public String toString() {
		return firstName + " " + surename;
	}

}
